Skip to content

Conversation

thomas-kl1
Copy link
Member

@thomas-kl1 thomas-kl1 commented Jul 11, 2025

Description (*)

The Add Store Code to Urls setting in the store web configuration is defined as global.
However in the core, the setting is fetched with the current scope in mind.

Related Pull Requests

https://github.com/magento-gl/magento2ee/pull/643

Fixed Issues (if relevant)

  1. Fixes magento/magento2#<issue_number>

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Resolved issues:

  1. resolves [Issue] Add Store Code to Urls should be Global #40069: Add Store Code to Urls should be Global

Copy link

m2-assistant bot commented Jul 11, 2025

Hi @thomas-kl1. Thank you for your contribution!
Here are some useful tips on how you can test your changes using Magento test environment.
❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names.

Allowed build names are:
  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here
ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.


For more details, review the Code Contributions documentation.
Join Magento Community Engineering Slack and ask your questions in #github channel.

@thomas-kl1
Copy link
Member Author

@magento run all tests

@thomas-kl1
Copy link
Member Author

@magento run all tests

@thomas-kl1
Copy link
Member Author

@magento run Unit Tests, Static Tests, Integration Tests

@thomas-kl1
Copy link
Member Author

@magento run all tests

@engcom-Charlie
Copy link
Contributor

@magento create issue

@thomas-kl1
Copy link
Member Author

@magento run all tests

@thomas-kl1
Copy link
Member Author

@engcom-Charlie Regarding the integration tests failures:

I can't fix the B2B/EE tests, in order to fix them you should replace the getValue par isSetFlag method when looking for the following configs:

  • general/single_store_mode/enabled
  • web/url/use_store

You should also look for default and not by scope for web/url/use_store.

@thomas-kl1
Copy link
Member Author

@magento run all tests

@thomas-kl1
Copy link
Member Author

@magento run Database Compare

@thomas-kl1
Copy link
Member Author

@magento run Functional Tests CE, Functional Tests B2B

@engcom-Charlie
Copy link
Contributor

@thomas-kl1 thank you for your contribution!

Currently we are looking into priority PRs from Community Dashboard, we will surely pick this PR as per the priority.

Thank you!

@engcom-Hotel
Copy link
Contributor

@magento run all tests

@engcom-Dash
Copy link
Contributor

@magento run all tests

@engcom-Dash
Copy link
Contributor

@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE

@engcom-Dash
Copy link
Contributor

Hello @engcom-Hotel Could you please review the changes. I have fixed the failing integration tests. The failed functional tests seems to flaky and have known JIRAs for them.

Hence moving this PR for review.

@engcom-Dash engcom-Dash moved this from Changes Requested to Pending Review in Community Dashboard Aug 18, 2025
@ct-prd-projects-boards-automation ct-prd-projects-boards-automation bot moved this from Pending Review to Review in Progress in Community Dashboard Aug 18, 2025
@engcom-Bravo engcom-Bravo added the Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it label Aug 18, 2025
@engcom-Hotel
Copy link
Contributor

@magento run all tests

@engcom-Hotel
Copy link
Contributor

@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Unit Tests

@ct-prd-projects-boards-automation ct-prd-projects-boards-automation bot moved this from Review in Progress to Ready for Testing in Community Dashboard Aug 20, 2025
@engcom-Dash engcom-Dash moved this from Ready for Testing to Testing in Progress in Community Dashboard Aug 21, 2025
@engcom-Dash
Copy link
Contributor

@magento run all tests

@engcom-Dash
Copy link
Contributor

✔️ QA Passed

Preconditions:
Install fresh 2.4-develop

Steps to reproduce:

  1. Check the core files where "Add Store Code to Urls" setting fetched using current scope store.

Before: ❌
As we can see in the screenshot that getValue() function has been called to get the value of configuration. This function passes the scope as a store scope where as the configuration says that its a global setting hence the scope should be default.

image Screenshot 2025-08-21 at 12 21 12 PM

After: ✔️

In this PR the getValue() has been replaced by isSetFlag() which is using default scope to retrive the value. Also, it returns boolean result. This PR addresses this issue by ensuring that the setting is retrieved using the default/global scope

The builds are failed hence moving this PR in Extended Testing

@engcom-Dash engcom-Dash moved this from Testing in Progress to Extended testing (optional) in Community Dashboard Aug 21, 2025
@engcom-Dash
Copy link
Contributor

@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE

@engcom-Dash
Copy link
Contributor

engcom-Dash commented Aug 22, 2025

The consistent failures in Functional B2B are known issues and JIRA is open for the same. The other failures are inconsistent and flaky. They neither part of the PR nor failing because of the PR changes

Build 1: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/40065/e7a9d51de4f15fbe0e4bf35ede579fd1/Functional/allure-report-b2b/index.html#categories/21465133e2db886cc777a8a85e4fd039/7fac23bb63d6099f/

image

Build 2: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/40065/952936cbfd72f19966bab2ff7d5e38cb/Functional/allure-report-b2b/index.html#categories/e40e613a1322e9aefb5d868a36a83a73/cd14f16f829d24e5/

image

Known Issues:
AdminStagingDashboardProvideAbilityToViewEditForUpdatesWithCartPriceRuleTest ACQE-8610
AssignCustomOrderStatusNotVisibleOnStorefrontTest ACQE-8490

The consistent failure in Functional CE is known issue and JIRA is open for the same. The other failures are inconsistent and flaky. They neither part of the PR nor failing because of the PR changes

Build 1: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/40065/07049bb0252ad31df782ab5237e005db/Functional/allure-report-ce/index.html#categories/8fb3a91ba5aaf9de24cc8a92edc82b5d

image

Build 2: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/40065/fccaef6b743ea8a0c258e8bcc6900805/Functional/allure-report-ce/index.html#categories/8fb3a91ba5aaf9de24cc8a92edc82b5d

image

Known Issue: StorefrontDeleteSimpleAndVirtualProductFromMiniShoppingCartTest ACQE-8560

The consistent failures in Functional EE are known issues and JIRA is open for the same. The other failures are inconsistent and flaky. They neither part of the PR nor failing because of the PR changes

Build 1: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/40065/6eafd3c685fdcdb43e65223aa573e7e2/Functional/allure-report-ee/index.html#categories/8fb3a91ba5aaf9de24cc8a92edc82b5d

image

Build 2: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/40065/8b6896284a44b91e5e7b06168e129a67/Functional/allure-report-ee/index.html#categories/8fb3a91ba5aaf9de24cc8a92edc82b5d

image

Known Issues:
AdminStagingDashboardProvideAbilityToViewEditForUpdatesWithCartPriceRuleTest ACQE-8610
AssignCustomOrderStatusNotVisibleOnStorefrontTest ACQE-8490

Hence moving this PR in Merge In Progress.

@engcom-Dash engcom-Dash moved this from Extended testing (optional) to Merge in Progress in Community Dashboard Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: P3 May be fixed according to the position in the backlog. Project: Community Picked PRs upvoted by the community Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
Status: Merge in Progress
Development

Successfully merging this pull request may close these issues.

[Issue] Add Store Code to Urls should be Global
5 participants